package com.xiaoyung.easyisapisdk.common.form;

public class MutipleTablQueryItem  {
	/*[
		{table:'table1',fields:['*'],prefix:'table1_',joinType:'leftJoin',  joinCondtion:'' },
		{table:'table2'},
		{table:'table3'},
	]*/
	private static final long serialVersionUID = 1L;

	public static final String PREFIX_POLICY_REPEAT = "repeat";
	public static final String PREFIX_POLICY_ALL = "all";
	
	private String table;// table_code
	private String[] fields;
	
	private String prefix;//字段名前缀 默认冲突了则加表名称

	private String prefixPolicy = PREFIX_POLICY_ALL;// 前缀策略 repeat:重复了才加前缀,all:不管是否重复全部改加前缀
	
	private String join;//和下一个表如何关联

	private String leftField;//本表字段
	private String rightField;//关联下一个表的字段
	
	public String getTable() {
		return table;
	}
	public void setTable(String table) {
		this.table = table;
	}
	public String[] getFields() {
		return fields;
	}
	public void setFields(String[] fields) {
		this.fields = fields;
	}
	public String getPrefix() {
		return prefix;
	}
	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}
	public String getPrefixPolicy() {
		return prefixPolicy;
	}
	public void setPrefixPolicy(String prefixPolicy) {
		this.prefixPolicy = prefixPolicy;
	}
	public String getJoin() {
		return join;
	}
	public void setJoin(String join) {
		this.join = join;
	}
	public String getLeftField() {
		return leftField;
	}
	public void setLeftField(String leftField) {
		this.leftField = leftField;
	}
	public String getRightField() {
		return rightField;
	}
	public void setRightField(String rightField) {
		this.rightField = rightField;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public static String getPrefixPolicyRepeat() {
		return PREFIX_POLICY_REPEAT;
	}
	public static String getPrefixPolicyAll() {
		return PREFIX_POLICY_ALL;
	}
	
	
	
}
